<?php
/*
 * Author :basanas
 */
require_once ('include/css_head.php');
require_once ('include/header.php');
require_once ('include/functions.php');

if (!isset($_SESSION['uid']) || $_SESSION['uid'] == -1) {
    UI_registerError('msg_warning', "You are not logged in.");
    header("Location:index.php");
}
else if ( isset($_SESSION['uid']) && $_SESSION['uid'] != 1) {
    UI_registerError('msg_warning', "You don't have access rights for this page.");
    header("Location:index.php");
}

?>

<div id="profileSideBar" style="min-width: 260px; margin-right: 50px; float:left"></div>

<div id="content">

</div>

<script type="text/javascript">
        $.ajaxSetup ({ cache: false });
        var ajax_load = "<img src='images/load.gif' alt='loading...' />";
        $("#profileSideBar").load($("#profileSideBar").html(ajax_load).load('profileSideBar.php'));
</script>

<?php
require_once ('Include/footer.php');
?>